﻿using ScreenMonitor.Common;
using System;
using System.Collections.Generic;
using System.Drawing.Imaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;
using ScreenMonitor.Common.Objects;
using System.Drawing;

namespace ClientUI
{
    public static class ServerCommandOperateClass
    {

        public static void ShowSignWnd(Object obj)
        {
            SignWnd.IsShowed = true;
            System.Threading.Thread.Sleep(1500);
            Program.SignWnd.ShowMe(obj);
        }

        public static Task ShowReciveWndTask = new Task(ShowSendFileWnd);
        public static void ShowMessageWnd(Object obj)
        {
            SendMessageObject o=(SendMessageObject)obj;
            MessageWnd swnd = new MessageWnd();
            swnd.ShowMsg(o.Title,o.Message);
        }
        public static void ShowSendFileWnd()
        {
            Program.FileReciveWnd.ShowDialog();
        }

    }
}
